package com.flurry.android;

import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

final class dn extends AppCloudResponse
{
  private ArrayList<AppCloudObject> fl = new ArrayList();
  private ArrayList<AppCloudUser> fm = new ArrayList();
  private Boolean fn = Boolean.valueOf(false);

  public dn(AppCloudResponse paramAppCloudResponse, Boolean paramBoolean)
  {
    super(paramAppCloudResponse.bY);
    this.fn = paramBoolean;
    if (isSuccessful())
      aF();
  }

  private void aF()
  {
    while (true)
    {
      int i;
      try
      {
        if (this.bY != null)
        {
          JSONArray localJSONArray = this.bY.getJSONArray("set");
          if (localJSONArray != null)
          {
            i = 0;
            if (i < localJSONArray.length())
            {
              JSONObject localJSONObject = localJSONArray.getJSONObject(i);
              if (this.fn.booleanValue())
                this.fm.add(new AppCloudUser(localJSONObject));
              else
                this.fl.add(new AppCloudObject(localJSONObject));
            }
          }
        }
      }
      catch (JSONException localJSONException)
      {
        localJSONException.printStackTrace();
      }
      return;
      i++;
    }
  }

  public final ArrayList<AppCloudObject> getObjects()
  {
    return this.fl;
  }

  public final ArrayList<AppCloudUser> getUsers()
  {
    return this.fm;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.dn
 * JD-Core Version:    0.6.2
 */